cubic equation factorization shortcut